<template>
	<view class="ikz-detail">
    <ikz-loading  :css-data="loading_css"></ikz-loading>
    <view class="ikz-detail-content">
      <rich-text :nodes="nodes"></rich-text>
    </view>
	</view>
</template>

<script>
import ikzLoading from '@/pages/Component/Public/Loading/loading.vue';
var app = getApp();
import ikz from '@/pages/Common/tools.js';
export default {
	components: {
    ikzLoading
	},
	data() {
		return {
      id:'',
      nodes:'',
      loading_css:{
        display:'flex'
      },
    };
	},
  onLoad(options) {
    this.id = options.article_id;
    this.articleDetail((res)=>{
      this.loading_css.display = 'none';
    });
  },
	created() {
		// var that = this;
	},
	methods: {
		//请求页面数据
		articleDetail(fn) {
			var path = '/xyb/same/receivie_agreement';
			var data = {
			};
			ikz.post(path, data, res => {
				if (res.data.code) {
					this.nodes = res.data.data.receivie_agreement;
				} else {
					uni.showModal({
						title: '提示',
						content: res.data.msg,
						showCancel: false,
						success: function(res) {}
					});
				}
        fn();
				// if(that.pull_status){
				// 	this.$emit("change",'pull');
				// }
			});
		}
	}
};
</script>

<style>
  page{
    width: 100%;
    height: 100%;
  }
 
  .ikz-detail-content{
    box-sizing: border-box;
    padding: 40rpx;
  }
</style>
